The specified
Code The page feature is invalid.
CodePage attribute: indicates the webpage code page.
If the webpage script is different from the default code page of the web server, you must specify the code page:
The Code is as follows:
CodePage = 936 Simplified Chinese GBK
CodePage = 950 traditional Chinese big5
CodePage
For the differences between codepage, Response.CodePage and Session.CodePage, the MSDN notes are as follows:
Setting @CODEPAGE explicitly affects literal strings in a single response. Response.CodePage affects dynamic strings in a single Response, and Session.CodePage affects dynamic strings in all Respon SES in a session.
The effect is that codepage affects st
additional instructions:FunctionAllows ASP to read form submissions and databases with specific codes.UsageAdd it to the first line of the ASP file. Use the following code based on different code pages:Usage notesIf codepage is not set for webpage A, and codepage is set for webpage B and C. When accessing webpage A, use the default IIS codepage; when accessing w
is still simplified Chinese, in fact, only simplified traditional characters.
Six, the ASP is Unicode, all text is in Unicode storage. Converts to the specified character set when needed.
First of all, the conclusion:
CODEPAGE specifies what IIS encodes to read the string passed over (form submission, address bar delivery, etc.).
also specifies the encoding to which all text variables are converted from Unicode,Also specifies the encoding from wh
The specified code page attribute is not valid.CodePage property: Is the code page that indicates the pageIf you make a Web page script that is different from the default code page on the Web service side, you must indicate the code page:
Copy Code code as follows:
codepage=936 Simplified Chinese GBK
codepage=950 Traditional Chinese BIG5
codepage=437 A
, English normal. and the ASP program to test, you can submit the normal Chinese, ASP page has such HTML code:
But adding this code to the ASP.net page still doesn't solve the problem. Analysis, the problem should be caused by coding, the other side of the program can only handle the GB2312 encoded pages submitted by the Chinese data. Did you add the above code, ASP. NET is not shown in GB2312 encoding? Open the page, check the browser's encoding, the original is UTF-8, the reason to fi
because the font used for display is not a unicode font,
Replace Arial Unicode MS fonts to display them all. (Access help, search, input Unicode, instructions)
V. Word
Simplified conversion in Word. After simplified conversion to traditional Chinese, the inner code is still in simplified Chinese, but in simplified Chinese.
Vi. asp is Unicode, and all texts are stored in Unicode. Convert to the specified character set as needed.
========================================================== ========
simplified Chinese.
Vi. asp is Unicode, and all texts are stored in Unicode. Convert to the specified character set as needed.
Conclusion:
CodePage specifies the encoding used by IIS to read passed strings (such as form submission and address bar transfer ).
It also specifies the encoding for converting all text variables from Unicode,It also specifies the Unicode conversion encoding of the data retrieved from the database. (Note this .)
Key
The specified code page attribute is not valid.
CodePage property: Is the code page that indicates the page
If you make a Web page script that is different from the default code page on the Web service side, you must indicate the code page:
The code is as follows:
codepage=936 Simplified Chinese GBK
codepage=950 Traditional Chinese BIG5
How to set the codepage of CMDSometimes, the codepage and fonts of our Cmd.exe changes, such as the sudden change from Chinese to English codepage (because of some SH program interference).Here's how to fix it:[Hkey_current_user\console\%systemroot%_system32_cmd.exe]"CodePage" =dword:000003a8Small Description:Hexadecim
Unicode font.The Arial Unicode MS font will be all displayed. (Access Help, search, enter Unicode, with instructions)
Five, WordWord in the simplified conversion, simplified to traditional, internal code is still simplified Chinese, in fact, only simplified traditional characters.
Six, the ASP is Unicode, all text is in Unicode storage. Converts to the specified character set when needed.
First of all, the conclusion:
CODEPAGE specifies what IIS enco
was true. This is strange. How can I choose not to select the second item?So I opened the previously written normal page in notepad to compare the differences between the two pages. I found a suspicious line at the top of the problematic page:
You must have discovered that, in the end, there is a sentence: codePage = "936", what is this? I checked the information and found the conclusion:
CodePage = "936
, which makes it odd that the second item is not selected.So I used to write the normal page with Notepad open, to compare the two pages have any difference, found that there is a problem at the top of the page has a word suspicious:We must have found that in the end there is a sentence: codepage= "936", what is this thing? I looked up the data and found the conclusion:Originally codepage= "936" is the Simp
the number that can be allocated to characters. UTF-8, UTF-16, UTF-32 are all convert numbersProgramData encoding scheme.
So how can Unicode be compatible with the text encoding from different countries? Such as gb2312, GBK, Japanese, and Korean in China.CodePage is required at this time.
3. codePage
What is codePage? CodePage is the ing between text en
that the attribute value was true. This is strange. How can I choose not to select the second item?So I opened the previously written normal page in notepad to compare the differences between the two pages. I found a suspicious line at the top of the problematic page:You must have discovered that, in the end, there is a sentence: codePage = "936", what is this? I checked the information and found the conclusion:CodePage = "936" in
true. This is strange. How can I choose not to select the second item?So I opened the previously written normal page in notepad to compare the differences between the two pages. I found a suspicious line at the top of the problematic page:You must have discovered that, in the end, there is a sentence: codePage = "936", what is this? I checked the information and found the conclusion:CodePage = "936" indicates Simplified Chinese, so I deleted it and f
Generally divided into
CodePage: readable/writable. Integral type. Defines the code page that is used to display the content of a page in a browser. The code page is the numeric value of the character set, and different languages use different code pages. For example, the ANSI code page is 1252, the Japanese code page is 932, and the Simplified Chinese code page is 936. Under normal circumstances, when you upload a foreign web page space, or extract
Many friends may not be aware of this problem, but if your site often appear inexplicably garbled, then you should take a good look at this topic.
CodePage, Chinese translation is "Inside Code table" or "code page", its complete introduction can refer to the link below
Http://zh.wikipedia.org/wiki/%E4%BB%A3%E7%A0%81%E9%A1%B5
Simply put, this is a table that the program uses to encode characters. The code page is a server thing, or something that is
This is the code used to indicate the Web page, such asGenerally used in the first line of the page, such as this
Small WHITE special hint: in Dreamweaver new ASP page, the choice of Preferences is utf-8, then your page is this code, you change 65001 to 936 also become simplified, but is garbled.
So page build page coding and codepage values to be consistent, only consistent to ensure that no garbled
Conversion between any of the following codepages is provided.
37 (= x0025) ebcdic us English273 (= x0111) ebcdic German277 (= x0115) ebcdic Danish/Norwegian278 (= x0116) ebcdic Finnish/Swedish280 (= x0118) ebcdic Italian284 (= x011c) ebcdic
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.